import request from '@/utils/request'

// 查询会议列表
export function listMeet(query) {
  return request({
    url: '/meet/list',
    method: 'get',
    params: query
  })
}

// 新增会议
export function addMeet(data) {
  return request({
    url: '/meet',
    method: 'post',
    data: data
  })
}

// 修改会议
export function updateMeet(data) {
  return request({
    url: '/meet',
    method: 'put',
    data: data
  })
}

// 获取会议详情
export function getMeet(id) {
  return request({
    url: '/meet/' + id,
    method: 'get'
  })
}

// 删除单个主办方
export function delMeet(meetId) {
  return request({
    url: '/meet/' + meetId,
    method: 'delete'
  })
}


// 获取会议主页 报告
export function getMeetReport(id) {
  return request({
    url: '/meet/report/' + id,
    method: 'get'
  })
}
